<?php


namespace api\web\validate;


use think\Validate;

class AdminValidate extends Validate
{

    protected $rule=[
        'mobile'=>'max:11|require',
        'user_name'=>'require',
        'code'=>'max:4|require',
    ];

    protected $message=[
        'mobile.max'=>'手机号过长',
        'mobile.require'=>'手机号不得为空',
        'code.max'=>'验证码长度不对',
        'code.require'=>'验证码必填'
    ];

    protected $scene=[
        'register'=>['mobile']
    ];
}